const actions = {
	asyncSetToken(context, token) {
		context.commit('setToken', token)
	},
	asyncSetUserInfo(context, userinfo) {
		context.commit('setUserInfo', userinfo)
	},
	asyncSetUserInfoName(context, username) {
		context.commit('setUserInfoName', username)
	},
	asyncSetUserInfoPhoto(context, userphoto) {
		context.commit('setUserInfoPhoto', userphoto)
	},
	asyncSetUserInfoRoleCode(context, rolecode) {
		context.commit('setUserInfoRoleCode', rolecode)
	},
	//删除token
	asyncRemoveToken(context) {
		context.commit('removeToken')
	}
}
export default actions